package com.ma;

import java.util.List;

import android.graphics.drawable.Drawable;
import android.os.Bundle;

import com.google.android.maps.GeoPoint;
import com.google.android.maps.MapActivity;
import com.google.android.maps.MapView;
import com.google.android.maps.OverlayItem;
import com.google.android.maps.Projection;

public class Map extends MapActivity
{
	//signed using a certificate whose MD5 hash is
	//49:6E:98:D1:EF:01:0B:4B:83:BD:D0:27:84:FC:A6:3C
	protected String googleKey="0zbDIv1_ri6trGrws83L6qh3t1U7U-fJHLzJavg";

	@Override
	protected boolean isRouteDisplayed()
	{
		return false;
	}
	public void onCreate(Bundle savedInstanceState) {
	    super.onCreate(savedInstanceState);
	    setContentView(R.layout.map);
	    MapView mapView = (MapView) findViewById(R.id.mapview);
	    
	    Projection p=mapView.getProjection();
	    p.fromPixels(0, 0);
	    
	    mapView.setBuiltInZoomControls(true);
	    List<com.google.android.maps.Overlay> mapOverlays = mapView.getOverlays();
	    Drawable drawable = this.getResources().getDrawable(R.drawable.thinkcloud);
	    Overlay itemizedoverlay = new Overlay(drawable);
	    GeoPoint point = new GeoPoint(19240000,-99120000);
	    OverlayItem overlayitem = new OverlayItem(point, "Hola, Mundo!", "I'm in Mexico City!");
	    GeoPoint point2 = new GeoPoint(35410000, 139460000);
	    OverlayItem overlayitem2 = new OverlayItem(point2, "Sekai, konichiwa!", "I'm in Japan!");
	    itemizedoverlay.addOverlay(overlayitem);
	    itemizedoverlay.addOverlay(overlayitem2);
	    mapOverlays.add(itemizedoverlay);
	    
	}
}